//
//  MineAccountModel.swift
//  MT
//
//  Created by 陈悦 on 2020/5/18.
//  Copyright © 2020 张强. All rights reserved.
//

import UIKit
import ObjectMapper

class MineAccountResponseModel: Mappable {
    
    var code: Int?
    
    var result: MineAccountModel?
    
    var message: String?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        code            <- map["code"]
        result          <- map["result"]
        message         <- map["message"]
    }
    
}

class MineAccountModel: Mappable {

    var receiveRedPacketAmount: Int = 0
    
    var receiveGiftAmount: Int = 0
    
    var money: Int = 0
    
    var ticketAmount: Int = 0
    
    var sendGiftAmount: Int = 0
    
    var sendRedPacketAmount: Int = 0
    
    var withdrawMoney: Int = 0
    
    /// 点券 * 兑换系数之后的钻石数量 - 可兑换钻石的数量
    var translateAmount: Int = 0
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        translateAmount              <- map["translateAmount"]
        money                        <- map["money"]
        receiveGiftAmount            <- map["receiveGiftAmount"]
        receiveRedPacketAmount       <- map["receiveRedPacketAmount"]
        ticketAmount                 <- map["ticketAmount"]
        sendGiftAmount               <- map["sendGiftAmount"]
        sendRedPacketAmount          <- map["sendRedPacketAmount"]
        withdrawMoney                <- map["withdrawMoney"]
    }
    
}
